﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ImageUpload.ascx.cs" Inherits="UserControls_ImageUpload" %>
<script type="text/javascript">
function setImage()
{
    alert("1");
    var img=document.getElementById("Image1");
    alert(img);
}
</script>
<asp:Image ID="Image1" runat="server" Height="150px" Width="150px" />
<asp:FileUpload ID="FileUpload1" runat="server" Height="26px" onchange="setImage()" />
<asp:Button ID="Button1" runat="server" Text="上传" Height="26px" 
    onclick="Button1_Click" Width="68px" />
